//
//
//

#ifndef CACTIONSERVER_H
#define CACTIONSERVER_H

#include <vector>



#include "../irrNetLite/include/irrNet.h"
#include "../irrNetLite/include/INetManager.h"
#include "../irrNetLite/include/SPacket.h"

#include "lua Loader/CLuaLoader.h"

#include "CGameInstance.h"


class CActionServer : public irr::net::INetCallback
{
public:
	static	CActionServer*	Instance();

	virtual	void	handlePacket(irr::net::SInPacket& packet);
	
	virtual	bool	Run();
protected:
	//CActionServer();

	virtual	bool	Init();

	virtual	bool	SendbackInfo();
private:
	static	CActionServer*	m_pInstance;

	irr::net::INetManager*	m_pNetwork;

	std::vector<CGameInstance>	m_vGameInstances;
};

#endif